package com.leo.springbootmultithreadbasic.communication.join.demo1;

/**
 * @author Leo
 * @version V1.0
 */
public class MyRunnable implements Runnable {

    @Override
    public void run() {
       int random = (int) (Math.random() * 10000);

        try {
            Thread.sleep(random);
            System.out.println("子线程执行结束");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
